package cn.tedu._04mybatis.pojo.entity;

import lombok.Data;

import java.util.Date;

/**
 * 用户表的实体类，与数据表的列名对应,
 * 一一映射关系，类型
 * BIGINT   --->  long
 * VARCHAR  --->  String
 * DATE     --->  Date
 *
 */
@Data
public class User {

    private long id;

    private String username;

    private String password;

    private String nickname;

    private Date created;

  /*  public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", created=" + created +
                '}';
    }*/
}
